<?php
require('../../public/zscg.php');
require('../../public/local.php');
require('../../public/uploadfiles.php');
$_POST['ctime'] = time();
$post=array('fid'=>$_POST['fid'],'ctime'=>$_POST['ctime'],'title'=>$_POST['title'],'content'=>$_POST['content'],'biaoqian'=>$_POST['biaoqian'],'zhuangtai'=>$_POST['zhuangtai']);
$res=insert($con,'wenzhang',$post);
uploadfiles('files','E:/WWW/blog/images');
if($res){
    echo '添加成功';
    header('location:/admin/wenzhang/index.php');
}else{
    echo '添加失败';
}